package com.ah.shanxi_demo.service;

import com.ah.shanxi_demo.entity.SxPolicy;
import com.ah.shanxi_demo.param.input.PolicyCollectRO;
import com.ah.shanxi_demo.param.input.PolicyPO;
import com.ah.shanxi_demo.param.result.PolicyGeneralRO;

import java.util.List;

/**
 * @author zt 2020/8/15
 */
public interface IPolicyService {

    List<SxPolicy> listBySelect(PolicyPO policyPO);
    Integer listCountBySelect(PolicyPO policyPO);
    Boolean deletePolicy(Long[] policyIdList);
    SxPolicy selectById(Long policyId);
    PolicyGeneralRO general();
    Boolean collect(PolicyCollectRO policyCollectRO);
    //采集数据 （模拟发送数据）
    Boolean simulationCollect(PolicyCollectRO policyCollectRO);

    //更新部级策略数据
    void syncPolicy();

    //更新部级策略数据(模拟)
    void syncSimulationPolicy();

    //数据库插入策略列表
    Boolean insertPolicyList(List<SxPolicy> sxPolicyList);

}
